package com.huilang.deme2;

/**
 * 工厂方法
 */
public class CoffeeTest {
    public static void main(String[] args) {
        CoffeeStore coffeeStore = new CoffeeStore(new Latte2CoffeeFactory());
        Coffee coffee = coffeeStore.getCoffee();
        coffee.makeCoffee();
    }
}
